<div class="container">
<div class="row">		
	<div class="col-md-9">
		<!-- 
    	<div class="ui-helper-clearfix ui-search-category">
    	<span class="ui-search-label">分 类 ：</span>	
<ul class="ui-search-options nav nav-pills"><li><a class=" ui-menu-first" href="/ideacms/3/">不限</a></li>
<li><a href="/ideacms/3/estate_economic_environment" id="link-102" data-id="102" ref="estate_economic_environment" class=" ui-menu-first">经济环境</a></li><li class="divider-vertical"></li>
<li><a href="/ideacms/3/estate_policy" id="link-103" data-id="103" ref="estate_policy">政策</a></li><li class="divider-vertical"></li>
<li><a href="/ideacms/3/estate_urban_construction" id="link-104" data-id="104" ref="estate_urban_construction">城市建设</a></li><li class="divider-vertical"></li>
<li><a href="/ideacms/3/estate_market_dynamics" id="link-105" data-id="105" ref="estate_market_dynamics">市场动态</a></li><li class="divider-vertical"></li>
<li><a href="/ideacms/3/estate_enterprise" id="link-106" data-id="106" ref="estate_enterprise">企业</a></li><li class="divider-vertical"></li>
<li><a href="/ideacms/3/estate_hot_project" id="link-107" data-id="107" ref="estate_hot_project">热点项目</a></li><li class="divider-vertical"></li>
<li><a href="/ideacms/3/estate_point_view" id="link-108" data-id="108" ref="estate_point_view" class=" ui-menu-last">业界观点</a></li></ul>
</div>
		 -->
		 
    	<portlet  title="资讯筛选">{{if in_array($current_cateid,array(102,103,105,107))}}
		<div id="estate_area" class="ui-helper-clearfix ui-search-item">	
		<span class="ui-search-label">地 区 ：</span>	{{$this->Section->getNavMenu('Misccate',
			array(
				'url'=>array('area_id'=>'{id}'),
				//'conditions'=>array('model'=>'EstateArticle'),
				'selectedid'=> $this->request->query['area_id'],
				'ulAttributes'=>array('class'=>'ui-search-options nav nav-pills'),
	                        'defaultClass'=>'ui-state-default',
				'preli'=>'<li><a class=" ui-menu-first" href="'.getSearchLinks($this->request,array(), array('area_id')).'">不限</a></li>',
				'sufli'=>'',
			),80
		)}}</div>
		{{/if}}
		
		{{if in_array($current_cateid,array(103,105,107))}}
		<div id="estate_property_type" class="ui-helper-clearfix ui-search-item">	
		<span class="ui-search-label">物业类型：</span>	{{$this->Section->getNavMenu('Misccate',
			array(
				'url'=>array('property_type'=>'{id}'),
				'conditions'=>array('model'=>'EstateArticle'),
				'selectedid'=> $this->request->query['property_type'],
				'ulAttributes'=>array('class'=>'ui-search-options nav nav-pills'),
	                        'defaultClass'=>'ui-state-default',
				'preli'=>'<li><a class=" ui-menu-first" href="'.getSearchLinks($this->request,array(), array('property_type')).'">不限</a></li>',
				'sufli'=>'',
			),108
		)}}</div>
		{{/if}}
		
		{{if in_array($current_cateid,array())}}
		<div id="estate_property_status" class="ui-helper-clearfix ui-search-item">	
		<span class="ui-search-label">物业状态：</span>	{{$this->Section->getNavMenu('Misccate',
			array(
				'url'=>array('property_status'=>'{id}'),
				'conditions'=>array('model'=>'EstateArticle'),
				'selectedid'=> $this->request->query['property_status'],
				'ulAttributes'=>array('class'=>'ui-search-options nav nav-pills'),
	                        'defaultClass'=>'ui-state-default',
				'preli'=>'<li><a class=" ui-menu-first" href="'.getSearchLinks($this->request,array(), array('property_status')).'">不限</a></li>',
				'sufli'=>'',
			),121
		)}}</div>
		{{/if}}
		
		{{if in_array($current_cateid,array(106,107))}}
		<div id="estate_enterprise" class="ui-helper-clearfix ui-search-item">	
		<span class="ui-search-label">企业：</span>	{{$this->Section->getNavMenu('Misccate',
			array(
				'url'=>array('enterprise'=>'{id}'),
				'conditions'=>array('model'=>'EstateArticle'),
				'selectedid'=> $this->request->query['enterprise'],
				'ulAttributes'=>array('class'=>'ui-search-options nav nav-pills'),
	                        'defaultClass'=>'ui-state-default',
				'preli'=>'<li><a class=" ui-menu-first" href="'.getSearchLinks($this->request,array(), array('enterprise')).'">不限</a></li>',
				'sufli'=>'',
			),127
		)}}</div>
		{{/if}}
		
		{{if $current_cateid==105}}
		<div id="estate_organization" class="ui-helper-clearfix ui-search-item">	
		<span class="ui-search-label">研究机构：</span>	{{$this->Section->getNavMenu('Misccate',
			array(
				'url'=>array('organization'=>'{id}'),
				'conditions'=>array('model'=>'EstateArticle'),
				'selectedid'=> $this->request->query['organization'],
				'ulAttributes'=>array('class'=>'ui-search-options nav nav-pills'),
	                        'defaultClass'=>'ui-state-default',
				'preli'=>'<li><a class=" ui-menu-first" href="'.getSearchLinks($this->request,array(), array('organization')).'">不限</a></li>',
				'sufli'=>'',
			),128
		)}}</div>
		{{/if}}
		
		{{if $current_cateid==103}}
		<div id="estate_policy_types" class="ui-helper-clearfix ui-search-item">	
		<span class="ui-search-label">政策类型：</span>	{{$this->Section->getNavMenu('Misccate',
			array(
				'url'=>array('policy_types'=>'{id}'),
				'conditions'=>array('model'=>'EstateArticle'),
				'selectedid'=> $this->request->query['policy_types'],
				'ulAttributes'=>array('class'=>'ui-search-options nav nav-pills'),
	                        'defaultClass'=>'ui-state-default',
				'preli'=>'<li><a class=" ui-menu-first" href="'.getSearchLinks($this->request,array(), array('policy_types')).'">不限</a></li>',
				'sufli'=>'',
			),129
		)}}</div>
		{{/if}}
		
		{{if $current_cateid==108}}
			<!-- //业界观点（观点方） -->
			<div id="estate_view_party" class="ui-helper-clearfix ui-search-item">	
		<span class="ui-search-label">观点方：</span>	{{$this->Section->getNavMenu('Misccate',
			array(
				'url'=>array('view_party'=>'{id}'),
				'conditions'=>array('model'=>'EstateArticle'),
				'selectedid'=> $this->request->query['view_party'],
				'ulAttributes'=>array('class'=>'ui-search-options nav nav-pills'),
	                        'defaultClass'=>'ui-state-default',
				'preli'=>'<li><a class=" ui-menu-first" href="'.getSearchLinks($this->request,array(), array('view_party')).'">不限</a></li>',
				'sufli'=>'',
			),130
		)}}</div>
		{{/if}}
		
		{{if $current_cateid==106}}
		<div id="estate_enterprise_news_type" class="ui-helper-clearfix ui-search-item">	
		<span class="ui-search-label">新闻细分：</span>	{{$this->Section->getNavMenu('Misccate',
			array(
				'url'=>array('enterprise_news_type'=>'{id}'),
				'conditions'=>array('model'=>'EstateArticle'),
				'selectedid'=> $this->request->query['enterprise_news_type'],
				'ulAttributes'=>array('class'=>'ui-search-options nav nav-pills'),
	                        'defaultClass'=>'ui-state-default',
				'preli'=>'<li><a class=" ui-menu-first" href="'.getSearchLinks($this->request,array(), array('enterprise_news_type')).'">不限</a></li>',
				'sufli'=>'',
			),131
		)}}</div>
		{{/if}}</portlet>
		<portlet  title="房地产资讯">
		<div class="Content-body">{{$Category['Category']['content']}} </div>
<?PHP if($total>0){ ?>
<ul class="clearfix portlet-content-list">
    <?PHP
    $region_control_name =$category_control_name = 'estate_articles';
     foreach($Category['datalist'] as $item) {
		$item['slug'] = $item['slug']?$item['slug']:$item['id'];
    ?>	
		{{include $Category['Category']['template']}}			
	<?php } ?>
</ul>
	{{$page_navi}}
<?php } ?></portlet>
	</div>
	<div class="col-md-3">
		<portlet>{{$this->Section->getLeftMenu('Category',array('parent_id'=> $top_category_id,'selectedid'=>$current_cateid))}}</portlet>
		<portlet   title="新闻热门排行" limit="8" custom_class="portlet-title-list" model="Article" fields="Article.name,Article.slug,Article.created" info="recursive=-1&amp;order=view_nums+desc"></portlet>
	</div>
  </div>

</div>
<tplsection>
<script>
	$(function(){
		$('.ui-search-options li.active').parents('li').each(function(){
			$(this).addClass('active')
		});
	});
</script>
</tplsection><script>
	$(function(){
		$('.ui-search-options li.active').parents('li').each(function(){
			$(this).addClass('active')
		});
	});
</script>